package edu.sctu.zhangwang.day201506;

import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Created by user10 on 2015/6/14.
 */
public class InputTest {
    public static void main(String[] args) throws IOException {
        char a;
        BufferedReader buff = new BufferedReader(new InputStreamReader(System.in));
        System.out.println("请输入字符，以z结束。");
        do {
            a = (char)buff.read();
            System.out.println(a);
        }while (a != 'z');
    }
}
